package com.tbm.base.service;

import com.tbm.entity.RoleEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017/8/30.
 */
public interface RoleService {
    RoleEntity findOne(Integer roleId);
    List<RoleEntity> findAll();

    Page<RoleEntity> findAll(Pageable pageable);
    int count();
    void save(RoleEntity roleEntity);
    void saveAndFlush(RoleEntity roleEntity);
    void delete(Integer roleId);

}
